<!-- $Id: topic_list.htm 14441 2008-04-18 03:09:11Z zhuwenyuan $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<form method="POST" action="" name="listForm">
<!-- start user_bonus list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th>
        <input onclick='listTable.selectAll(this, "checkboxs")' type="checkbox">编号
      </th>
      <th>题目</th>
      <th>是</th>
      <th>否</th>
      <th>{$lang.handler}</th>
    </tr>
    {foreach from=$question_list item=question}
    <tr>
      <td><span><input value="{$question.question_id}" name="checkboxs[]" type="checkbox">{$question.question_id}</span></td>
      
      <td>{$question.question|escape}</td>
      
      <td align="center"><span style="" title="点击修改内容" onclick="listTable.edit(this, 'edit_point_yes', {$question.question_id})">{$question.point_yes}</span></td>
      <td align="center"><span style="" title="点击修改内容" onclick="listTable.edit(this, 'edit_point_no', {$question.question_id})">{$question.point_no}</span></td>
      <td align="center">
      	<a href="ceping.php?act=edit_question&exam_id={$exam_id}&id={$question.question_id}" title="{$lang.edit}">{$lang.edit}</a>
      	<a href="javascript:;" on title="{$lang.drop}" onclick="listTable.remove({$question.question_id},'确定要删除？','delete_question');">{$lang.drop}</a>
      </td>
   
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="11">{$lang.no_records}</td></tr>
    {/foreach}
  </table>

  <table cellpadding="4" cellspacing="0">
    <tr>
      <td><input type="submit" name="drop" id="btnSubmit" value="{$lang.drop}" class="button" disabled="true" />
      </td>
    </tr>
  </table>

{if $full_page}
</div>
<!-- end user_bonus list -->
</form>

<script type="text/javascript" language="JavaScript">
  

  {literal}
  onload = function()
  {
    // 开始检查订单
    startCheckOrder();
    document.forms['listForm'].reset();
  }
  
  document.getElementById("btnSubmit").onclick = function()
  {
    if (confirm('确定删除选中项？'))
    {
      document.forms["listForm"].action = "ceping.php?act=delete_question";
      return;
    }
    else
    {
      return false;
    }
  }
  {/literal}
</script>
{include file="pagefooter.htm"}
{/if}